package com.naiterui.ehp.bs.cms.modules.followup.feign;

import com.naiterui.ehp.bp.bo.emr.QaPageBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.cms.modules.followup.vo.FollowUpRecordFormVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "cmsPatient", url = "${ehp.domain.ap}", configuration = FeignConfiguration.class)
public interface PatientFeignClient {

    @PostMapping("inner/followup/qa")
    QaPageBO qaRecord(@RequestBody List<FollowUpRecordFormVO> vos) throws BusinessException;

    @PostMapping("inner/followup/qa/export")
    byte[] qaRecordExport(@RequestBody List<FollowUpRecordFormVO> vos) throws BusinessException;
}
